Skip to content

Comments

fix: upstream istio support#3021

Closed
juliusvonkohout wants to merge 6 commits intomasterfrom
pss-restricted-fixes
Closed

fix: upstream istio support#3021
juliusvonkohout wants to merge 6 commits intomasterfrom
pss-restricted-fixes

Conversation

@juliusvonkohout
Copy link
Member

@juliusvonkohout juliusvonkohout commented Dec 5, 2025

@andreyvelich may you also patch it in helm for the jobset ?

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

🎉 Welcome to the Kubeflow Trainer! 🎉

Thanks for opening your first PR! We're happy to have you as part of our community 🚀

Here's what happens next:

  • If you haven't already, please check out our Contributing Guide for repo-specific guidelines and the Kubeflow Contributor Guide for general community standards.
  • Our team will review your PR soon! cc @kubeflow/kubeflow-trainer-team

Join the community:

Feel free to ask questions in the comments if you need any help or clarification!
Thanks again for contributing to Kubeflow! 🙏

@coveralls
Copy link

coveralls commented Dec 5, 2025

Pull Request Test Coverage Report for Build 21665617792

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 51.217%

Totals Coverage Status
Change from base Build 21610377640: 0.0%
Covered Lines: 1241
Relevant Lines: 2423

💛 - Coveralls

@google-oss-prow google-oss-prow bot added size/M and removed size/S labels Dec 5, 2025
@juliusvonkohout juliusvonkohout changed the title pss-restricted-fixes fix: pss-restricted-with-istio Dec 5, 2025
@juliusvonkohout
Copy link
Member Author

/retest

Copilot AI review requested due to automatic review settings December 30, 2025 15:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Istio sidecar exclusion configuration and seccomp security profiles to improve compatibility with Pod Security Standards (PSS) restricted policies when using Istio service mesh. The changes ensure that webhook traffic on port 9443 bypasses the Istio sidecar and adds RuntimeDefault seccomp profiles for enhanced security.

Key Changes:

  • Added Istio traffic exclusion annotation for inbound port 9443 to prevent sidecar interference with webhook communication
  • Configured RuntimeDefault seccomp profiles at the pod security context level for compliance with restricted PSS

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
manifests/third-party/jobset/kustomization.yaml Adds kustomize patch for jobset-controller-manager deployment with Istio annotation and seccomp profile
manifests/base/manager/manager.yaml Updates trainer manager deployment with Istio exclusion annotation and seccomp security context
charts/kubeflow-trainer/templates/manager/deployment.yaml Adds Istio traffic exclusion annotation to Helm chart template for trainer manager

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@juliusvonkohout
Copy link
Member Author

@andreyvelich i am waiting for this to merge kubeflow/manifests#3314
/lgtm from my side if the tests are green.
Maybe you have to rebase the branch.

Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
@juliusvonkohout Can you rebase this PR to fix CI please ?
/cc @tenzen-y @astefanutti

Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
Add security context and annotations for Istio traffic management.

Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
Added a patch to modify the jobset-controller-manager deployment annotations and security context.

Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
Removed security context seccomp profile from deployment.

Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
Removed security context seccompProfile configuration.

Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
Removed security context seccompProfile from spec.

Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from andreyvelich. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@juliusvonkohout
Copy link
Member Author

@andreyvelich rebase is done

Comment on lines +22 to +23
annotations:
traffic.sidecar.istio.io/excludeInboundPorts: "9443"
Copy link
Member

@andreyvelich andreyvelich Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay @juliusvonkohout!

We discussed about it with @kannon92 on JobSet issue: kubernetes-sigs/jobset#1052 (comment)

Since other platforms might not use Istio (e.g. Cilium, Linkerd, etc.), I would suggest to add custom patch to the kubeflow-platform overlay to append this annotation alongside JobSet change:

patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: jobset-controller-manager
namespace: kubeflow-system
spec:
template:
metadata:
annotations:
traffic.sidecar.istio.io/excludeInboundPorts: "9443"

cc @kubeflow/kubeflow-trainer-team

Copy link
Member Author

@juliusvonkohout juliusvonkohout Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Slack:

I don't suggest you to do that in kubeflow/manifests
Similar to JobSet, just update kubeflow-platform Kustomize overlay in kubeflow/trainer repo to add patch for kubeflow-trainer-controller-manager deployment:

- target:
group: apps
version: v1
kind: Deployment
name: jobset-controller-manager
patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: jobset-controller-manager
namespace: kubeflow-system
spec:
template:
metadata:
annotations:
traffic.sidecar.istio.io/excludeInboundPorts: "9443"

E.g. you can do that here: https://github.com/kubeflow/trainer/blob/6ec7112a3b397d0b160330f78f9b6bbcd4c59a0f/manifests/overlays/kubeflow-platform/kustomization.yaml
For the Helm Charts, simple use this Value to configure appropriate label when you do helm install
{{- include "trainer.manager.selectorLabels" . | nindent 8 }}
helm install kubeflow-trainer oci://ghcr.io/kubeflow/charts/kubeflow-trainer --version 2.1.0 --set trainer.manager.selectorLabels traffic.sidecar.istio.io/excludeInboundPorts=9443

Maybe a GSOC applicant can fork my branch and do the changes :-) and raise a PR against my the branch here. I will ask https://cloud-native.slack.com/archives/C0742LBR5BM/p1770634485333769

@juliusvonkohout juliusvonkohout changed the title fix: pss-restricted-with-istio fix: upstream istio support Feb 12, 2026
@juliusvonkohout
Copy link
Member Author

Might be continued in #3189

@andreyvelich
Copy link
Member

This PR is fixed by: #3189
/close

@google-oss-prow google-oss-prow bot closed this Feb 19, 2026
@google-oss-prow
Copy link

@andreyvelich: Closed this PR.

Details

In response to this:

This PR is fixed by: #3189
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@andreyvelich andreyvelich deleted the pss-restricted-fixes branch February 19, 2026 00:37
@andreyvelich andreyvelich restored the pss-restricted-fixes branch February 19, 2026 00:37
@juliusvonkohout juliusvonkohout deleted the pss-restricted-fixes branch February 19, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants